<h1>Passenger List</h1>

<table class='sortable' id='sortable'>
  <thead>
    <tr>
      <th>Id</th>
      <th>Px number</th>
      <th>Sex</th>
      <th>Age to date</th>
      <th>Birth date</th>
      <th>Birth place</th>
      <th>Person</th>
      <th>Created at</th>
      <th>Updated at</th>
    </tr>
  </thead>
  <tbody>
    <?php foreach ($passenger_list as $passenger): ?>
    <tr>
      <td><a href="<?php echo url_for('passenger/show?id='.$passenger['id']) ?>"><?php echo $passenger->getid() ?></a></td>
      <td><?php echo $passenger->getpx_number() ?></td>
      <td><?php echo $passenger->getsex() ?></td>
      <td><?php echo $passenger->getage_to_date() ?></td>
      <td><?php echo $passenger->getbirth_date() ?></td>
      <td><?php echo $passenger->getbirth_place() ?></td>
      <td><?php echo $passenger->getperson_id() ?></td>
      <td><?php echo $passenger->getcreated_at() ?></td>
      <td><?php echo $passenger->getupdated_at() ?></td>
    </tr>
    <?php endforeach; ?>
  </tbody>
</table>

  <a href="<?php echo url_for('passenger/new') ?>">New</a>
